package com.up.vms.infrastructure.mvc;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.up.vms.infrastructure.util.InfoDesensitizeUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE)
@Data
public class BaseRequest extends AbstractRequest {

	private static final long serialVersionUID = -2095767164898811735L;

	@ApiModelProperty("业务种类")
	private String bizTypeCode;

	@ApiModelProperty("userId")
	private String userId;

	public String toLogString() {
		return InfoDesensitizeUtil.fromObject(this);
	}
	
	@Override
	public String toString() {
	    return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}

	@ApiModelProperty("access_token")
	public String accessToken;
}






